package com.example.weizix.presenter;

import com.example.weizix.base.BasePresenter;
import com.example.weizix.bean.DailyBean;
import com.example.weizix.model.HotModel;
import com.example.weizix.net.ReonClick;
import com.example.weizix.view.HotView;

public class HotPresenter extends BasePresenter<HotView> {

    private HotModel model;

    @Override
    protected void initModel() {
        model = new HotModel();
        addModel(model);
    }

    public void getHot() {
        model.getHot(new ReonClick<DailyBean>() {
            @Override
            public void cheng(DailyBean dailyBean) {
                view.setData(dailyBean.getRecent());
            }
        });
    }
}
